import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import i18n from './i18n';
import store from './store';
import './uni.promisify.adaptor'
import Loading from '@/components/Loading.vue';
import HeaderTitle from "@/components/HeaderTitle.vue"
Vue.component('HeaderTitle',HeaderTitle);
Vue.component('Loading',Loading);
Vue.config.productionTip = false;
Vue.prototype.getImgSrc = function(img){
	return "https://dikidiki.kompas.world/storage/" + img;
}


App.mpType = 'app'
const app = new Vue({
	...App,
	i18n,
	store
})

Vue.use(uView)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif